<template>
  <div class="content">
    <Air title="房产经纪"></Air>
    <List :list='agentsList'></List>
  </div>
</template>

<script>
import List from './components/List'
import {getAgentsApi} from '@/api/agents'
export default {
  components:{
    List
  },
  data(){
    return {
      agentsList:[]
    }
  },
  created(){
    this.getAgents()
  },
  methods:{
    async getAgents(){
     let {data} = await getAgentsApi()
     console.log(data)
     this.agentsList=data
    }
  }
}
</script>

<style>

</style>